/*
 * @Author: wjc
 * @Date: 2025-07-29 17:04:47
 * @LastEditors: wjc
 * @LastEditTime: 2025-10-30 17:16:07
 * @Description:
 */
import { createApp } from 'vue'

import { setupDirectives } from '#/directives'
import { setupRouter } from '#/router'
import { setupStores } from '#/stores'
import { unmountGlobalLoading } from '@nice/utils'
import ElementPlus from 'element-plus'

import App from './app.vue'

import '@nice/styles'

import 'element-plus/dist/index.css'
import '#/assets/styles/index.scss'
import 'virtual:uno.css'

function bootstrap() {
  const app = createApp(App)

  app.use(ElementPlus)

  setupRouter(app)
  // 配置 store
  setupStores(app)
  setupDirectives(app)

  app.mount('#app')

  unmountGlobalLoading()
}

bootstrap()
